@model VotingSystem.Models.Survey

@{
    ViewData["Title"] = "问卷已结束";
}

<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-8">
            <div class="card shadow-sm">
                <div class="card-body text-center">
                    <div class="mb-4">
                        <i class="fas fa-clock text-warning" style="font-size: 4rem;"></i>
                    </div>
                    <h1 class="card-title mb-4">问卷已结束</h1>
                    <p class="card-text text-muted mb-4">
                        @if (!Model.IsActive)
                        {
                            <span>该问卷已被创建者关闭</span>
                        }
                        else if (Model.EndTime.HasValue)
                        {
                            <span>该问卷已于 @Model.EndTime.Value.ToString("yyyy-MM-dd HH:mm") 结束</span>
                        }
                    </p>
                    <div class="mt-4">
                        <a asp-action="Index" class="btn btn-primary">返回问卷列表</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div> 